//
//  Coordinate.m
//  DogLocate
//
//  Created by mac on 11-5-23.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Coordinate.h"


@implementation Coordinate
@synthesize longitude; //经度
@synthesize latitude; //维度
- (void)encodeWithCoder:(NSCoder *)coder {
	[coder encodeObject:longitude forKey:@"longitude"];  
    [coder encodeObject:latitude forKey:@"latitude"];
	
}

-(id)initWithCoder:(NSCoder *)coder {
	
	if (self = [super init])  
    {  
        self.longitude = [coder decodeObjectForKey:@"longitude"];  
        self.latitude = [coder decodeObjectForKey:@"latitude"];  
		
		
    }  
    return self;  
}
@end
